lunomobs:register_mob("lunomobs:slimer", {
	mob_name="LODO",
	type = "monster",
	hp_max = 2,
	xp_give = 7,
	visual = "mesh",
	mesh = "mobs_slimer.x",
	textures = {"mobs_slimer.png"},
	collisionbox = {-0.3,0.6,-0.3, 0.3,1.0,0.3},
	visual_size = {x=-3, y=3},
	makes_footstep_sound = false,
	view_range = 15,
	walk_type = "jump",
	walk_velocity = 0.5,
	run_velocity = 1.5,
	damage = 3,
	drops = {
		{name="default:mossycobble", chance=1, min=1, max=1,}, --Probabilidade é de 1:1 (=100%) de cair entre 1 a 3 "mossycobble"
	},
	light_resistant = true,
	armor = 80,
	drawtype = "front",
	water_damage = 1,
	lava_damage = 1,
	light_damage = 0,
	attack_type = "dogfight",
	animation = {
		speed_normal = 15,
		speed_run = 25,
		stand_start = 0,
		stand_end = 0,
		walk_start = 0,
		walk_end = 30,
		run_start = 0,
		run_end = 30,
		punch_start = 0,
		punch_end = 0,
	},
	sounds={ jump="mobs_slimer_jump", attack="mobs_slimer_attack",hit="sword_2", die="mobs_slimer_die", },
})

--lunomobs:register_spawn(name, nodes, max_light, min_light, chance, active_object_count, max_height, spawn_func)
lunomobs:register_spawn("lunomobs:slimer", {"watershed:stone","default:mossycobble"}, 10, -1, 1000, 3, 10)

minetest.register_craftitem("lunomobs:slimer", {
	description = "Lodo",
	groups = { mobs=1 },
	inventory_image = "mob_slimer.png",
	on_place = function(itemstack, placer, pointed_thing)
		if pointed_thing.above then
			minetest.env:add_entity(pointed_thing.above, "lunomobs:slimer")
			if not minetest.setting_getbool("creative_mode") then itemstack:take_item() end
		end
		return itemstack
	end,
})

minetest.register_alias("slimer"	, "lunomobs:slimer")
minetest.register_alias("lodo"	, "lunomobs:slimer")
